<template>
  <div class="loading" v-show="loading">
      <div class="ani"></div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      loading: false
    }
  }
}
</script>

<style lang="scss" scoped>
@keyframes ani {
  0%{
    transform: rotate(0deg);
  }
  100%{
    transform: rotate(360deg);
  }
}
.loading{
  position: fixed;
  left:0;
  right:0;
  top:0;
  bottom:0;
  z-index:10;
  background: rgba(0,0,0,.3);
  display: flex;
  justify-content: center;
  align-items: center;
  .ani{
    width:60px;
    height: 60px;

    border:8px solid rgb(228, 156, 23) ;
    border-radius: 38px;
    border-left-color:transparent;
    animation: ani 1s linear infinite;
  }
}
</style>
